package com.zkjl.protect_business.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel(description = "业务培训实体")
public class BusinessTrainingDTO {

    @ApiModelProperty(value = "培训名称")
    @NotBlank(message = "培训名称不能为空")
    private String name;

    @ApiModelProperty(value = "内容类型 视屏 文件")
    private String type;

    @ApiModelProperty(value = "培训描述")
    private String describe;

    @ApiModelProperty(value = "附件ids")
    @Field(name = "attachment_ids")
    private List<String> attachmentIds;
}
